package com.example.design.singleton;

import java.util.Vector;

public class Singleton1 {
	private static Singleton1 instance = null;
	private Vector properties = null;
	private Singleton1() {}
	
	private static synchronized void syncInit() {
		if(instance == null)
			instance = new Singleton1();
	}
	
	public static Singleton1 getInstance() {
		if(instance == null)
			syncInit();
		return instance;
	}
	
	public Vector getProperties() {
		return properties;
	}
	
	public void updateProperties() {
		Singleton1 shadow = new Singleton1();
		properties = shadow.getProperties();
	}
}
